package com.hoas.quickstart.threads.chapter02.chapter02_2_8_03;

public class MyObject {

    public void speedPrintString() {

        synchronized ( this ) {

            System.out.println("speedPrintString __getLock time=" + System.currentTimeMillis()
                    + " run thread-name=" + Thread.currentThread().getName());

            System.out.println("-----------------------");

            System.out.println("speedPrintString releaseLock time=" + System.currentTimeMillis()
                    + " run thread-name=" + Thread.currentThread().getName());

        }

    }

}
